package cn.itsource.dept.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.itsource.base.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;


/**
 * <p>
 * 
 * </p>
 *
 * @author xlh
 * @since 2023-01-16
 */
@Data
public class Department extends BaseDomain {

    private static final long serialVersionUID = 1L;
    //             列名                第几列       宽度
    @Excel(name = "部门编号" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String sn;
    //             列名                第几列       宽度
    @Excel(name = "部门名字" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    //             列名                第几列       宽度
    @Excel(name = "上级部门" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String dirPath;
    private Integer state;
    //             列名                第几列       宽度
    @Excel(name = "管理员" ,orderNum = "1", width = 30, isImportField = "true_st")
    private Long manager_id;
    private Long parent_id;
    private Long shop_id;

    private Employee manager;
    private Department parent;

    //children 不能写错 因为element要使用
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Department> children = new ArrayList();

}
